package com.augrain.microframework.trace;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * trace配置类
 *
 * @author biaoy
 * @since 2021/08/20
 */
@Getter
@Setter
@ConfigurationProperties(prefix = TraceProperty.TRACE_LOG_PREFIX)
public class TraceProperty {
    public static final String TRACE_LOG_PREFIX = "spring.mf.trace";

    /**
     * 默认的输出格式
     */
    public static final String DEFAULT_PATTERN = "traceId,spanId,fromApp,fromIp";

    /**
     * 格式
     */
    private String pattern = DEFAULT_PATTERN;
}
